package cn.iocoder.yudao.module.member.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * Member 错误码枚举类
 * <p>
 * member 系统，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 用户相关  1-004-001-000 ============
    ErrorCode USER_NOT_EXISTS = new ErrorCode(1_004_001_000, "用户不存在");
    ErrorCode USER_MOBILE_NOT_EXISTS = new ErrorCode(1_004_001_001, "手机号未注册用户");
    ErrorCode USER_MOBILE_USED = new ErrorCode(1_004_001_002, "手机号({})已经被使用");
    ErrorCode USER_POINT_NOT_ENOUGH = new ErrorCode(1_004_001_003, "用户积分余额不足");
    ErrorCode USER_MOBILE_ALREADY_BIND = new ErrorCode(1_004_001_004, "手机号已被当前用户绑定");
    ErrorCode USER_INVITE_CODE_EMPTY = new ErrorCode(1_004_001_005, "邀请码为空");
    ErrorCode USER_INVITE_CODE_NOT_EXISTS = new ErrorCode(1_004_001_006, "邀请码对应的信息不存在");
    ErrorCode USER_POINTS_NOT_ENOUGH = new ErrorCode(1_004_001_007, "积分不足");

    // ========== 用户推广记录相关  1_004_002_000 ============
    ErrorCode USER_PROMOTION_RECORDS_NOT_EXISTS = new ErrorCode(1_004_002_000, "用户推广记录不存在");
    ErrorCode USER_PROMOTION_RECORDS_EXISTS = new ErrorCode(1_004_002_001, "用户邀请记录已经存在");
    ErrorCode USER_PROMOTION_RECORDS_CAN_NOT_SELF_INVITE = new ErrorCode(1_004_002_002, "用户推广记录使用的邀请码不能是自己的");

    // ========== AUTH 模块 1-004-003-000 ==========
    ErrorCode AUTH_LOGIN_BAD_CREDENTIALS = new ErrorCode(1_004_003_000, "登录失败，账号密码不正确");
    ErrorCode AUTH_LOGIN_USER_DISABLED = new ErrorCode(1_004_003_001, "登录失败，账号被禁用");
    ErrorCode AUTH_LOGIN_USER_NOT_LOGIN = new ErrorCode(1_004_003_002, "当前未登录，请先登录");
    ErrorCode AUTH_SOCIAL_USER_NOT_FOUND = new ErrorCode(1_004_003_003, "登录失败，解析不到三方登录信息");
    ErrorCode AUTH_MOBILE_USED = new ErrorCode(1_004_003_004, "手机号已经被使用");
    ErrorCode AUTH_FIRST_MOBILE_LOGIN_SCAN_QR = new ErrorCode(1_004_003_005, "首次手机号登录请使用微信扫码注册");

    // ========== 用户收件地址 1-004-004-000 ==========
    ErrorCode ADDRESS_NOT_EXISTS = new ErrorCode(1_004_004_000, "用户收件地址不存在");

    //========== 用户标签 1-004-006-000 ==========
    ErrorCode TAG_NOT_EXISTS = new ErrorCode(1_004_006_000, "用户标签不存在");
    ErrorCode TAG_NAME_EXISTS = new ErrorCode(1_004_006_001, "用户标签已经存在");
    ErrorCode TAG_HAS_USER = new ErrorCode(1_004_006_002, "用户标签下存在用户，无法删除");

    //========== 积分配置 1-004-007-000 ==========

    //========== 积分记录 1-004-008-000 ==========
    ErrorCode POINT_RECORD_BIZ_NOT_SUPPORT = new ErrorCode(1_004_008_000, "用户积分记录业务类型不支持");

    //========== 签到配置 1-004-009-000 ==========
    ErrorCode SIGN_IN_CONFIG_NOT_EXISTS = new ErrorCode(1_004_009_000, "签到天数规则不存在");
    ErrorCode SIGN_IN_CONFIG_EXISTS = new ErrorCode(1_004_009_001, "签到天数规则已存在");

    //========== 签到配置 1-004-010-000 ==========
    ErrorCode SIGN_IN_RECORD_TODAY_EXISTS = new ErrorCode(1_004_010_000, "今日已签到，请勿重复签到");

    //========== 用户等级 1-004-011-000 ==========
    ErrorCode LEVEL_NOT_EXISTS = new ErrorCode(1_004_011_000, "用户等级不存在");
    ErrorCode LEVEL_NAME_EXISTS = new ErrorCode(1_004_011_001, "用户等级名称[{}]已被使用");
    ErrorCode LEVEL_VALUE_EXISTS = new ErrorCode(1_004_011_002, "用户等级值[{}]已被[{}]使用");
    ErrorCode LEVEL_EXPERIENCE_MIN = new ErrorCode(1_004_011_003, "升级经验必须大于上一个等级[{}]设置的升级经验[{}]");
    ErrorCode LEVEL_EXPERIENCE_MAX = new ErrorCode(1_004_011_004, "升级经验必须小于下一个等级[{}]设置的升级经验[{}]");
    ErrorCode LEVEL_HAS_USER = new ErrorCode(1_004_011_005, "用户等级下存在用户，无法删除");

    ErrorCode EXPERIENCE_BIZ_NOT_SUPPORT = new ErrorCode(1_004_011_201, "用户经验业务类型不支持");

    //========== 用户分组 1-004-012-000 ==========
    ErrorCode GROUP_NOT_EXISTS = new ErrorCode(1_004_012_000, "用户分组不存在");
    ErrorCode GROUP_HAS_USER = new ErrorCode(1_004_012_001, "用户分组下存在用户，无法删除");
    ErrorCode USER_PACKAGE_NOT_EXISTS = new ErrorCode(2_004_012_001, "用户关联套餐不存在");
    ErrorCode USER_FACE_LOGS_NOT_EXISTS = new ErrorCode(2_004_012_002, "用户面试日志不存在");
    ErrorCode USER_SHARE_LOGS_NOT_EXISTS = new ErrorCode(2_004_012_003, "用户推广日志不存在");
    ErrorCode USER_CREATIVE_REMARK_NOT_EXISTS = new ErrorCode(2_004_012_004, "创意文案关联评论不存在");
    ErrorCode USER_CV_NOT_EXISTS = new ErrorCode(2_004_012_005, "用户简历管理不存在");
    ErrorCode USER_ANSWER_NOT_EXISTS = new ErrorCode(2_004_012_006, "问答明细不存在");
    ErrorCode USER_PROBLEM_NOT_EXISTS = new ErrorCode(2_004_012_008, "用户做过的问题不存在");
    ErrorCode USER_ANSWER_REMARK_NOT_EXISTS = new ErrorCode(2_004_012_009, "用户问答评论不存在");
    ErrorCode USER_PACKAGE_DETAIL_NOT_EXISTS = new ErrorCode(2_004_012_010, "用户套餐购买明细不存在");
    ErrorCode USER_BACK_AMOUNT_NOT_EXISTS = new ErrorCode(2_004_012_011, "用户提现/退款记录不存在");
    ErrorCode USER_CREATIVE_TEXT_NOT_EXISTS = new ErrorCode(2_004_012_012, "用户创意文案不存在");

    ErrorCode USER_POINT_RECORDS_NOT_EXISTS = new ErrorCode(2_004_013_000, "用户积分流水不存在");

    ErrorCode USER_COMMISSION_NOT_EXISTS = new ErrorCode(2_004_014_000, "佣金不存在");

    ErrorCode USER_WITHDRAW_NOT_EXISTS = new ErrorCode(2_004_015_000, "提现不存在");
    ErrorCode USER_WITHDRAW_NOT_RIGHT = new ErrorCode(2_004_015_001, "提现金额不正确");
    ErrorCode USER_WITHDRAW_NOT_ENOUGH = new ErrorCode(2_004_015_002, "提现金额不足");

    ErrorCode USER_REFUND_NOT_EXISTS = new ErrorCode(2_004_016_000, "退款不存在");

}
